[CI] Resolve target membership issues after migrating to buildable folders#3949
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. 💤 Files selected but had no reviewable changes (1)
You can disable this status message by setting the
📝 WalkthroughWalkthroughThis PR adds documentation guidance to AGENTS.md about Xcode target membership for new files, including a requirement description and a checklist reminder item. No functional code changes. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
SDK Size
|
|
* [CI] Convert Xcode groups to buildable folders (#3940) * [CI] Delete unused test artifact (#3944) * [CI] Resolve mock server compilation issue (#3946) * [CI] Resolve target membership issues after migrating to buildable folders (#3949) * Make the members and messages size in ChannelListQuery optional (#3951) * Prevent adding back deleted reactions in case of client errors (#3956) * Fix refreshing channel when setting push notification preference for the first time (#3954) * Bump 4.97.1 * Update release version to snapshot --------- Co-authored-by: Martin Mitrevski <martinmitrevski.oh@gmail.com> Co-authored-by: Toomas Vahter <toomas.vahter@getstream.io> Co-authored-by: Stream Bot <ci@getstream.io>



📝 Summary
Xcode buildable folders have been implemented in https://github.com/GetStream/stream-chat-swiftui/pull/3940
There are two issues:
1.
I noticed that all the snapshots were added to
membershipExceptionsbecauseTestsis part offileSystemSynchronizedGroupswhich also makes all snapshots to be part of the project.Snapshots are read by testing framework from the file system, they should not be part of the project. Moreover, having them as part of the project may produce conflicts on adding new tests if there is at least one file in the project with a shared target membership (which is kind of weird, but it is as it is).
Excluding
TestsfromfileSystemSynchronizedGroupsand adding membership to all the target files manually seems to be fixing the issue. All new files will have target membership out of the box and all new snapshots won't be added to thebundleormembershipExceptions.2.
When creating a file via Agent, it could have the wrong target membership. Updated
AGENTS.mdto prevent this from happening.🧪 Manual Testing Notes
StreamChatUITestsand run itSummary by CodeRabbit